package com.eonmind.vip.contract.api;

import com.eonmind.common.contract.constants.ServiceConstant;
import com.eonmind.common.contract.data.response.ResponseEntity;
import com.eonmind.common.provider.dto.VipDto;
import lombok.Data;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * vip对pay暴露接口
 * @restApi
 */
@FeignClient(name = ServiceConstant.EON_MIND_VIP_SERVICE, contextId = "VIP-TO-PAY")
public interface VipToPayFeignService {


    /**
     * 用户完成支付后，更新用户会员状态
     *
     * @param list<VipDto.PayToVipOrderSucDto>
     * @return ResponseEntity<Boolean>
     */
    @PostMapping("/vip-api/toPay/updateUserPlan")
    ResponseEntity<Boolean> updateUserPlan(@RequestBody List<VipDto.PayToVipOrderSucDto> order);
}
